
<div class="content-inner">
	<div class="marg20-btm">
           <a href=<?php echo site_url('backend_pages/member'); ?> class="btn btn-primary">&hearts; View Members </a>
                         </div>
<form action=<?php echo site_url('backend_pages/addmember'); ?> method="post" class="form-horizontal" />
	<?php 
	//echo form_open('backend_pages/addmember','post');
		$fullname = array(
			  'name' => 'fullname',
			  
			  'id' => 'input01',
			  'required' => '',
			  'placeholder' => 'Your full name ... ',
			  'class' => 'input-xlarge',
			  'value' => set_value('fullname')
					  );
		$email = array(
			'name' => 'email',
			
			'id' => 'input01',
			'placeholder' => 'Your email ... ',
			'required' => '',
			'type' => 'email',
			'value' => set_value('email')
			);
		$gender = array(
			'' => '---select gender---',
			'M' => 'Male',
			'F' => 'Female',
			'O' => 'Other'
			);
		$role = array(
			'' => '---select role---',
			'1' => 'Administrator',
			'2' => 'Simple User'
			);
		$phone = array(
			'name' => 'phone',
			'id' => 'input01',
		    'class' => 'input-xlarge',
			'required' => '',
			'placeholder' => 'phone number',
			'required' => '',
			'value' => set_value('phone')

			);
		$address = array(
			 'name' => 'address',
			 'id' => 'input01',
			 'class' => 'input-xlarge',
			 'placeholder' => 'Your address',
			 'required' => '',
			 'value' => set_value('address'),
			 'rows'        => '5',
			 'cols'        => '10',
			 'style'       => 'width:30%'
			 );
		$username = array(
			  'name' => 'username',
			  'value' => set_value('username'),
			  'id' => 'input01',
			  'required' => '',
			  'placeholder' => 'Your username ',
			  'class' => 'input-xlarge'
					  );
		$password = array(
			'name' => 'pass',
			'value' => '',
			'id' => 'input01',
			'required' => '',
			'placeholder' => 'Your password',
			'class' => 'input-xlarge',
			'type' => 'password'
					);
		$confirm_pass = array(
			'name' => 'con_pass',
			'id' => 'input01',
		    'required' => '',
		    'class' => 'input-xlarge',
			'placeholder' => 'Retype password',
			'required' => '',
			'type' => 'password'
			);
	?>

   <div class="control-group">
    
    <?php
           echo '<div class="controls">
		   <span style="color:red; margin-left:0px; text-align:left;!important">' . validation_errors('&times; &nbsp;') . '</span>
		   </div>';
         ?>
       <label class="control-label" for="input01">Full Name </label>
       <div class="controls">
         <?php echo form_input($fullname);?>
       </div>
     </div>
     
     <div class="control-group">
       <label class="control-label" for="input01">Emial Active </label>
       <div class="controls">
         <?php echo form_input($email);?>
       </div>
     </div>
     <div class="control-group">
       <label class="control-label" for="input01">Phone Number </label>
       <div class="controls">
         <?php echo form_input($phone);?>
       </div>
     </div>
     <div class="control-group">
       <label class="control-label" for="input01">Gender </label>
       <div class="controls">
         <?php echo form_dropdown('gender',$gender);?>
       </div>
     </div>
     <div class="control-group">
       <label class="control-label" for="input01">User Role </label>
       <div class="controls">
         <?php echo form_dropdown('role',$role);?>
       </div>
     </div>
     <div class="control-group">
       <label class="control-label" for="input01">Address </label>
       <div class="controls">
         <?php  echo form_textarea($address);?>
       </div>
     </div>
     <div class="control-group">
       <label class="control-label" for="input01">Username </label>
       <div class="controls">
         <?php echo form_input($username);?>
       </div>
     </div>
     <div class="control-group">
       <label class="control-label" for="input01">Password </label>
       <div class="controls">
          <?php echo form_password($password);?>
       </div>
     </div>
     <div class="control-group">
       <label class="control-label" for="input01">Confirm Password </label>
       <div class="controls">
         <?php echo form_password($confirm_pass);?>
       </div>
     </div>
     <div class="form-actions">
         <button type="submit" class="btn btn-primary">Save </button>
         <a href="<?php echo site_url('backend_pages/member'); ?>" class="btn">Cancel </a>
     </div>
 </form> 